<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>eRPC Generator (erpcgen): CGenerator.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">eRPC Generator (erpcgen)
   &#160;<span id="projectnumber">Rev. 1.7.4</span>
   </div>
   <div id="projectbrief">NXP Semiconductors</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_c_generator_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">CGenerator.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2014-2016, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright 2016-2017 NXP</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef _EMBEDDED_RPC__CGENERATOR_H_</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#define _EMBEDDED_RPC__CGENERATOR_H_</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;Generator.h&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;cpptempl.h&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;types/Group.h&quot;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;set&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// Classes</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceerpcgen.html">erpcgen</a> {</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_c_generator.html">   26</a></span>&#160;<span class="keyword">class </span><a class="code" href="classerpcgen_1_1_c_generator.html">CGenerator</a> : <span class="keyword">public</span> <a class="code" href="classerpcgen_1_1_generator.html">Generator</a></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;{</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <a class="code" href="classerpcgen_1_1_c_generator.html#ac078781f6ea293b7cf2ee5e2e48d64b9">CGenerator</a>(<a class="code" href="classerpcgen_1_1_interface_definition.html">InterfaceDefinition</a> *def);</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_c_generator.html#ad9dfc9c3bcf1a98b668cbf448c8224ff">   43</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classerpcgen_1_1_c_generator.html#ad9dfc9c3bcf1a98b668cbf448c8224ff">~CGenerator</a>() {}</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpcgen_1_1_c_generator.html#ab9c6578a4bc52f0f722ce98fc6b74700">generate</a>();</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">enum</span> _direction</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        kIn,</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        kOut,</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        kInOut,</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        kNone</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    };</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    cpptempl::data_list m_symbolsTemplate; </div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    std::vector&lt;ListType *&gt;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        m_listBinaryTypes; </div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    std::vector&lt;StructType *&gt; m_structListTypes; </div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">void</span> parseSubtemplates();</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keywordtype">void</span> generateOutputFiles(<span class="keyword">const</span> std::string &amp;fileNameExtension);</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordtype">void</span> generateTypesHeaderFile();</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordtype">void</span> generateCommonHeaderFiles(<span class="keyword">const</span> std::string &amp;fileName);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keywordtype">void</span> generateClientSourceFile(std::string fileName);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordtype">void</span> generateServerHeaderFile(std::string fileName);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keywordtype">void</span> generateServerSourceFile(std::string fileName);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> generateCrcFile();</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordtype">void</span> transformAliases();</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> getSymbolTemplateByName(<span class="keyword">const</span> std::string &amp;name);</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *findChildDataType(std::set&lt;DataType *&gt; &amp;dataTypes, <a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *dataType);</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordtype">void</span> setBinaryList(<a class="code" href="classerpcgen_1_1_struct_member.html">StructMember</a> *structMember);</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> getFunctionBaseTemplateData(<a class="code" href="classerpcgen_1_1_group.html">Group</a> *group, <a class="code" href="classerpcgen_1_1_function_base.html">FunctionBase</a> *fn);</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> getFunctionTemplateData(<a class="code" href="classerpcgen_1_1_group.html">Group</a> *group, <a class="code" href="classerpcgen_1_1_function.html">Function</a> *fn);</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> getFunctionTypeTemplateData(<a class="code" href="classerpcgen_1_1_group.html">Group</a> *group, <a class="code" href="classerpcgen_1_1_function_type.html">FunctionType</a> *fn);</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <span class="keywordtype">void</span> setTemplateComments(<a class="code" href="classerpcgen_1_1_symbol.html">Symbol</a> *symbol, <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> &amp;symbolInfo);</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <span class="keywordtype">void</span> makeConstTemplateData();</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <span class="comment">// Functions that populate type-specific template data</span></div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> makeGroupSymbolsTemplateData(<a class="code" href="classerpcgen_1_1_group.html">Group</a> *group);</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    cpptempl::data_list makeGroupCallbacksTemplateData(<a class="code" href="classerpcgen_1_1_group.html">Group</a> *group);</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> getStructDeclarationTemplateData(<a class="code" href="classerpcgen_1_1_struct_type.html">StructType</a> *structType);</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> getStructDefinitionTemplateData(<a class="code" href="classerpcgen_1_1_group.html">Group</a> *group, <a class="code" href="classerpcgen_1_1_struct_type.html">StructType</a> *structType,</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;                                                       <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> structInfo);</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> getUnionDeclarationTemplateData(<a class="code" href="classerpcgen_1_1_union_type.html">UnionType</a> *unionType);</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> getUnionDefinitionTemplateData(<a class="code" href="classerpcgen_1_1_group.html">Group</a> *group, <a class="code" href="classerpcgen_1_1_union_type.html">UnionType</a> *unionType, <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> &amp;unionInfo,</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;                                                      <span class="keywordtype">bool</span> &amp;needUnionsServerFree);</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    <span class="keywordtype">void</span> setUnionMembersTemplateData(<a class="code" href="classerpcgen_1_1_union_type.html">UnionType</a> *unionType, <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> &amp;unionInfo);</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    std::string getUnionMembersData(<a class="code" href="classerpcgen_1_1_union_type.html">UnionType</a> *unionType, std::string indent);</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    <span class="keywordtype">void</span> makeEnumsTemplateData();</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    <span class="keywordtype">void</span> makeSymbolsDeclarationTemplateData();</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> getEnumTemplateData(<a class="code" href="classerpcgen_1_1_enum_type.html">EnumType</a> *enumType);</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    cpptempl::data_list getEnumMembersTemplateData(<a class="code" href="classerpcgen_1_1_enum_type.html">EnumType</a> *enumType);</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    <span class="keywordtype">void</span> makeAliasesTemplateData();</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    <a class="code" href="classerpcgen_1_1_alias_type.html">AliasType</a> *getAliasType(<a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *dataType);</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    std::string getAliasName(<a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *dataType);</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> getTypeInfo(<a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *t, <span class="keywordtype">bool</span> isFunction);</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    std::string getErrorReturnValue(<a class="code" href="classerpcgen_1_1_function_base.html">FunctionBase</a> *fn);</div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    std::string getFunctionPrototype(<a class="code" href="classerpcgen_1_1_group.html">Group</a> *group, <a class="code" href="classerpcgen_1_1_function_base.html">FunctionBase</a> *fn, std::string name = <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;</div><div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;    std::string getFunctionServerCall(<a class="code" href="classerpcgen_1_1_function.html">Function</a> *fn, <a class="code" href="classerpcgen_1_1_function_type.html">FunctionType</a> *functionType = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;</div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;    std::string generateIncludeGuardName(<span class="keyword">const</span> std::string &amp;filename);</div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;</div><div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;    std::string getBuiltinTypename(<span class="keyword">const</span> <a class="code" href="classerpcgen_1_1_builtin_type.html">BuiltinType</a> *t);</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;</div><div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;    std::string getTypenameName(<a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *t, <span class="keyword">const</span> std::string &amp;name);</div><div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;</div><div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> getEncodeDecodeCall(<span class="keyword">const</span> std::string &amp;name, <a class="code" href="classerpcgen_1_1_group.html">Group</a> *group, <a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *t, <a class="code" href="classerpcgen_1_1_struct_type.html">StructType</a> *structType,</div><div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;                                           <span class="keywordtype">bool</span> inDataContainer, <a class="code" href="classerpcgen_1_1_struct_member.html">StructMember</a> *structMember, <span class="keywordtype">bool</span> &amp;needTempVariable,</div><div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;                                           <span class="keywordtype">bool</span> isFunctionParam);</div><div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;</div><div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;    <span class="keywordtype">void</span> getEncodeDecodeBuiltin(<a class="code" href="classerpcgen_1_1_group.html">Group</a> *group, <a class="code" href="classerpcgen_1_1_builtin_type.html">BuiltinType</a> *t, <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> &amp;templateData, <a class="code" href="classerpcgen_1_1_struct_type.html">StructType</a> *structType,</div><div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;                                <a class="code" href="classerpcgen_1_1_struct_member.html">StructMember</a> *structMember, <span class="keywordtype">bool</span> isFunctionParam);</div><div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;</div><div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;    <span class="keywordtype">void</span> giveBracesToArrays(std::string &amp;name);</div><div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;</div><div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;    std::string getExtraDirectionPointer(<a class="code" href="classerpcgen_1_1_struct_member.html">StructMember</a> *structMember);</div><div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;</div><div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;    std::string getExtraPointerInReturn(<a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *dataType);</div><div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;</div><div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> firstAllocOnServerWhenIsNeed(std::string name, <a class="code" href="classerpcgen_1_1_struct_member.html">StructMember</a> *structMember);</div><div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;</div><div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> firstAllocOnReturnWhenIsNeed(std::string name, <a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *dataType);</div><div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;</div><div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> allocateCall(<span class="keyword">const</span> std::string &amp;name, <a class="code" href="classerpcgen_1_1_symbol.html">Symbol</a> *symbol);</div><div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;</div><div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;    <span class="keywordtype">void</span> setSymbolDataToSide(<span class="keyword">const</span> <a class="code" href="classerpcgen_1_1_symbol.html">Symbol</a> *symbolType, <span class="keyword">const</span> std::set&lt;_param_direction&gt; directions,</div><div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;                             cpptempl::data_list &amp;toClient, cpptempl::data_list &amp;toServer, <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> &amp;dataMap);</div><div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;</div><div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    <span class="keywordtype">bool</span> isNeedCallFree(<a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *dataType);</div><div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;</div><div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;    <span class="keywordtype">void</span> setCallingFreeFunctions(<a class="code" href="classerpcgen_1_1_symbol.html">Symbol</a> *symbol, <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> &amp;info, <span class="keywordtype">bool</span> returnType);</div><div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;</div><div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;    std::string returnSpaceWhenNotEmpty(<span class="keyword">const</span> std::string &amp;param);</div><div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;</div><div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;    <span class="keywordtype">bool</span> containsString(<a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *dataType);</div><div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;</div><div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;    <span class="keywordtype">bool</span> containsList(<a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *dataType);</div><div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;</div><div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;    <span class="keywordtype">bool</span> containsByrefParamToFree(<a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *dataType, std::set&lt;DataType *&gt; &amp;dataTypes);</div><div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;</div><div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;    <span class="keywordtype">bool</span> isBinaryStruct(<a class="code" href="classerpcgen_1_1_struct_type.html">StructType</a> *structType);</div><div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;</div><div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;    <span class="keywordtype">bool</span> isBinaryList(<a class="code" href="classerpcgen_1_1_list_type.html">ListType</a> *listType);</div><div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;</div><div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;    <span class="keywordtype">bool</span> isListStruct(<a class="code" href="classerpcgen_1_1_struct_type.html">StructType</a> *structType);</div><div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;</div><div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;    <span class="keywordtype">bool</span> generateServerFreeFunctions(<a class="code" href="classerpcgen_1_1_struct_member.html">StructMember</a> *structMember);</div><div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;</div><div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;    <span class="keywordtype">void</span> setNoSharedAnn(<a class="code" href="classerpcgen_1_1_symbol.html">Symbol</a> *parentSymbol, <a class="code" href="classerpcgen_1_1_symbol.html">Symbol</a> *childSymbol);</div><div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;</div><div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;    <span class="keywordtype">bool</span> setDiscriminatorTemp(<a class="code" href="classerpcgen_1_1_union_type.html">UnionType</a> *unionType, <a class="code" href="classerpcgen_1_1_struct_type.html">StructType</a> *structType, <a class="code" href="classerpcgen_1_1_struct_member.html">StructMember</a> *structMember,</div><div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;                              <span class="keywordtype">bool</span> isFunctionParam, <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> &amp;templateData);</div><div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;</div><div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;    std::string getScalarTypename(<a class="code" href="classerpcgen_1_1_data_type.html">DataType</a> *dataType);</div><div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;</div><div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;    std::string getDirection(_param_direction direction);</div><div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160;</div><div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;    <span class="keywordtype">bool</span> isServerNullParam(<a class="code" href="classerpcgen_1_1_struct_member.html">StructMember</a> *structMember);</div><div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;</div><div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;    <span class="keywordtype">bool</span> isPointerParam(<a class="code" href="classerpcgen_1_1_struct_member.html">StructMember</a> *structMember);</div><div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;</div><div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;    <span class="keywordtype">bool</span> isNullableParam(<a class="code" href="classerpcgen_1_1_struct_member.html">StructMember</a> *structMember);</div><div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;</div><div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;    <span class="keywordtype">void</span> initCReservedWords();</div><div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;</div><div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;    <span class="keywordtype">void</span> scanStructForAnnotations(<a class="code" href="classerpcgen_1_1_struct_type.html">StructType</a> *currentStructType, <span class="keywordtype">bool</span> isFunction);</div><div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;</div><div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;    <span class="keywordtype">void</span> checkIfAnnValueIsIntNumberOrIntType(<a class="code" href="classerpcgen_1_1_annotation.html">Annotation</a> *ann, <a class="code" href="classerpcgen_1_1_struct_type.html">StructType</a> *currentStructType);</div><div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;};</div><div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;} <span class="comment">// namespace erpcgen</span></div><div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;</div><div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;<span class="preprocessor">#endif // _EMBEDDED_RPC__CGENERATOR_H_</span></div><div class="ttc" id="classerpcgen_1_1_interface_definition_html"><div class="ttname"><a href="classerpcgen_1_1_interface_definition.html">erpcgen::InterfaceDefinition</a></div><div class="ttdoc">Collects all definitions from an IDL. </div><div class="ttdef"><b>Definition:</b> InterfaceDefinition.h:30</div></div>
<div class="ttc" id="classerpcgen_1_1_function_type_html"><div class="ttname"><a href="classerpcgen_1_1_function_type.html">erpcgen::FunctionType</a></div><div class="ttdoc">Function data type. </div><div class="ttdef"><b>Definition:</b> FunctionType.h:30</div></div>
<div class="ttc" id="classerpcgen_1_1_struct_member_html"><div class="ttname"><a href="classerpcgen_1_1_struct_member.html">erpcgen::StructMember</a></div><div class="ttdoc">Member of a struct. </div><div class="ttdef"><b>Definition:</b> StructMember.h:37</div></div>
<div class="ttc" id="classerpcgen_1_1_annotation_html"><div class="ttname"><a href="classerpcgen_1_1_annotation.html">erpcgen::Annotation</a></div><div class="ttdoc">Annotation class. </div><div class="ttdef"><b>Definition:</b> Annotation.h:27</div></div>
<div class="ttc" id="classerpcgen_1_1_alias_type_html"><div class="ttname"><a href="classerpcgen_1_1_alias_type.html">erpcgen::AliasType</a></div><div class="ttdoc">Typedef. </div><div class="ttdef"><b>Definition:</b> AliasType.h:25</div></div>
<div class="ttc" id="classerpcgen_1_1_builtin_type_html"><div class="ttname"><a href="classerpcgen_1_1_builtin_type.html">erpcgen::BuiltinType</a></div><div class="ttdoc">Represents the builtin atomic types. </div><div class="ttdef"><b>Definition:</b> BuiltinType.h:25</div></div>
<div class="ttc" id="classerpcgen_1_1_struct_type_html"><div class="ttname"><a href="classerpcgen_1_1_struct_type.html">erpcgen::StructType</a></div><div class="ttdoc">Structure data type. </div><div class="ttdef"><b>Definition:</b> StructType.h:28</div></div>
<div class="ttc" id="classerpcgen_1_1_function_html"><div class="ttname"><a href="classerpcgen_1_1_function.html">erpcgen::Function</a></div><div class="ttdoc">Function declaration. </div><div class="ttdef"><b>Definition:</b> Function.h:116</div></div>
<div class="ttc" id="classerpcgen_1_1_symbol_html"><div class="ttname"><a href="classerpcgen_1_1_symbol.html">erpcgen::Symbol</a></div><div class="ttdoc">Base class for all named declarations in the IDL. </div><div class="ttdef"><b>Definition:</b> Symbol.h:27</div></div>
<div class="ttc" id="classerpcgen_1_1_c_generator_html_ad9dfc9c3bcf1a98b668cbf448c8224ff"><div class="ttname"><a href="classerpcgen_1_1_c_generator.html#ad9dfc9c3bcf1a98b668cbf448c8224ff">erpcgen::CGenerator::~CGenerator</a></div><div class="ttdeci">virtual ~CGenerator()</div><div class="ttdoc">This function is destructor of CGenerator class. </div><div class="ttdef"><b>Definition:</b> CGenerator.h:43</div></div>
<div class="ttc" id="classerpcgen_1_1_list_type_html"><div class="ttname"><a href="classerpcgen_1_1_list_type.html">erpcgen::ListType</a></div><div class="ttdoc">Variable length list of another data type. </div><div class="ttdef"><b>Definition:</b> ListType.h:25</div></div>
<div class="ttc" id="classerpcgen_1_1_c_generator_html_ac078781f6ea293b7cf2ee5e2e48d64b9"><div class="ttname"><a href="classerpcgen_1_1_c_generator.html#ac078781f6ea293b7cf2ee5e2e48d64b9">erpcgen::CGenerator::CGenerator</a></div><div class="ttdeci">CGenerator(InterfaceDefinition *def)</div><div class="ttdoc">This function is constructor of CGenerator class. </div><div class="ttdef"><b>Definition:</b> CGenerator.cpp:45</div></div>
<div class="ttc" id="classerpcgen_1_1_generator_html"><div class="ttname"><a href="classerpcgen_1_1_generator.html">erpcgen::Generator</a></div><div class="ttdoc">Abstract code generator base class. </div><div class="ttdef"><b>Definition:</b> Generator.h:43</div></div>
<div class="ttc" id="classerpcgen_1_1_data_type_html"><div class="ttname"><a href="classerpcgen_1_1_data_type.html">erpcgen::DataType</a></div><div class="ttdoc">Base class for data types. </div><div class="ttdef"><b>Definition:</b> DataType.h:25</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html"><div class="ttname"><a href="classerpcgen_1_1_group.html">erpcgen::Group</a></div><div class="ttdoc">An interface that contains functions. </div><div class="ttdef"><b>Definition:</b> Group.h:27</div></div>
<div class="ttc" id="classcpptempl_1_1data__map_html"><div class="ttname"><a href="classcpptempl_1_1data__map.html">cpptempl::data_map</a></div><div class="ttdef"><b>Definition:</b> cpptempl.h:190</div></div>
<div class="ttc" id="classerpcgen_1_1_function_base_html"><div class="ttname"><a href="classerpcgen_1_1_function_base.html">erpcgen::FunctionBase</a></div><div class="ttdoc">Function base declaration. </div><div class="ttdef"><b>Definition:</b> Function.h:29</div></div>
<div class="ttc" id="classerpcgen_1_1_enum_type_html"><div class="ttname"><a href="classerpcgen_1_1_enum_type.html">erpcgen::EnumType</a></div><div class="ttdoc">Enumerate data type. </div><div class="ttdef"><b>Definition:</b> EnumType.h:27</div></div>
<div class="ttc" id="classerpcgen_1_1_union_type_html"><div class="ttname"><a href="classerpcgen_1_1_union_type.html">erpcgen::UnionType</a></div><div class="ttdoc">Discriminated union data type. </div><div class="ttdef"><b>Definition:</b> UnionType.h:27</div></div>
<div class="ttc" id="classerpcgen_1_1_c_generator_html"><div class="ttname"><a href="classerpcgen_1_1_c_generator.html">erpcgen::CGenerator</a></div><div class="ttdoc">Code generator for C. </div><div class="ttdef"><b>Definition:</b> CGenerator.h:26</div></div>
<div class="ttc" id="classerpcgen_1_1_c_generator_html_ab9c6578a4bc52f0f722ce98fc6b74700"><div class="ttname"><a href="classerpcgen_1_1_c_generator.html#ab9c6578a4bc52f0f722ce98fc6b74700">erpcgen::CGenerator::generate</a></div><div class="ttdeci">virtual void generate()</div><div class="ttdoc">This function generate output code for output files. </div><div class="ttdef"><b>Definition:</b> CGenerator.cpp:403</div></div>
<div class="ttc" id="namespaceerpcgen_html"><div class="ttname"><a href="namespaceerpcgen.html">erpcgen</a></div><div class="ttdef"><b>Definition:</b> AstNode.h:25</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.5-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul class="foot">
    <li class="footer">Copyright 2016-2020 NXP Semiconductors. All rights reserved.
    </li>
  </ul>
</div>
</body>
</html>
